package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.leizi.igym.domain.Category;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-09  14:01
 * @Description:
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "器械返回的数据格式")
public class EquipVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 353750494093937317L;

    @Schema(name = "器械id主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "器械名称")
    private String equipName;

    @Schema(name = "器械头像")
    private String picture;

    @Schema(name = "器械区域名称")
    private String regionName;

    @Schema(name = "器械简介")
    private String intro;

    @Schema(name = "器械锻炼部位")
    private List<Category> partList;

    @Schema(name = "购入时间")
    private LocalDate purchaseTime;

    @Schema(name = "器械状态")
    private Integer status;

}
